package com.yunji.order.contstant;

/**
 * @Project: yunji-coffee
 * @Package: com.yunji.order.wechat
 * @Title: PayCode
 * @Description: 支付常量
 * <p>
 * History:
 * Date                     Version     Author          Summary
 * ============================================================
 * 2024-04-11 19:17:42      V1.0        HuaAo       新建类
 */

public final class PayCode {
    private PayCode() {
    }

    public static final String ENCODING_UTF8 = "UTF-8";

    /**
     * ------------------------------------------ 微信支付地址 ------------------------------------------
     */
    // 微信支付地址
    public static final String WECHAT_TRADE_PAYABLE = "https://api.mch.weixin.qq.com/v3/pay/transactions/jsapi";

    // 微信退款地址
    public static final String WECHAT_TRADE_REFUND = "https://api.mch.weixin.qq.com/v3/refund/domestic/refunds";

    // 微信关闭地址
    public static final String WECHAT_TRADE_CLOSED = "https://api.mch.weixin.qq.com/v3/pay/transactions/out-trade-no/{}/close";

    // 微信转账地址
    public static final String WECHAT_TRADE_PAYOUT = "https://api.mch.weixin.qq.com/v3/transfer/batches";

    /**
     * ------------------------------------------ 微信查询地址 ------------------------------------------
     */

    // 微信查询支付
    public static final String WECHAT_SEARCH_PAYABLE = "https://api.mch.weixin.qq.com/v3/pay/transactions/out-trade-no/{}?mchid={}";

    // 微信查询支付
    public static final String WECHAT_SEARCH_REFUND = "https://api.mch.weixin.qq.com/v3/refund/domestic/refunds/{}";

    // 微信查询支付
    public static final String WECHAT_SEARCH_PAYOUT = "https://api.mch.weixin.qq.com/v3/refund/domestic/refunds";

    /**
     * ------------------------------------------ 微信发货地址 ------------------------------------------
     */

    // 微信订单物流
    public static final String WECHAT_ORDER_LOGISTICS = "https://api.weixin.qq.com/wxa/sec/order/upload_shipping_info?access_token={}";

    /**
     * ------------------------------------------ 微信用户地址 ------------------------------------------
     */
    // 微信授权地址
    public static final String WECHAT_ACCESS_TOKEN = "https://api.weixin.qq.com/cgi-bin/stable_token";

    // 商户号
    public static final String MCH_ID = "1604434256";
    // 商户证书序列号
    public static final String MCH_SERIAL_NO = "7C3DD0066CFFECD151E583E1E17CE58B0A1EC9A7";
    // api密钥
    public static final String API_V3KEY = "00DD2A161604B0EC9A47C35617CE58ab";

    /*
    String PRIVATE_KEY = "-----BEGIN PRIVATE KEY-----\n" +
            "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCsZzcbxAE7oN2/\n" +
            "JQfidDiH4NJfNBLUeq3cD8tskZbawbNsRBgFewojbTGjyE4K1a2UeHaprTZDJASA\n" +
            "xmZC/tZEN+GBvCBnEKTtEivstoMj76lxzuMsxhA5LY3Mq+lYWbqIInc3ePP+zBXs\n" +
            "cOZXeYKk43OYwLlnF6HeBclnDnuLzO7cRpn7gfoqA+6gY4TdVNspNeEI3kiQC83X\n" +
            "bUusEmAQV2Q8Mfgha8erKVIl4Y7hFimaUMQF640bYxh5I9N6L/bW90c5oEioApcx\n" +
            "l3ux8wKV5XTdKwmPmeq8hfJayeu6m+HEi4XmQTLcc4tTYvhEhGx102V678tSXNSA\n" +
            "ejeuaO3DAgMBAAECggEBAJ/xIa8gqAQpuY8bS7VLHSbx7DlmlhGJvsHp5U9TwiAw\n" +
            "k8RdZ+utujojk2ne6ogitGaJW40OpMilIYhWh4if4yhmr08suOLlDhziPt3cdM1i\n" +
            "ClELHrbrCSICoQrAcjsFA4hIcVGFZNd9ftlb5FZC5HEUkqmkIl0CD6lqtO5nATcv\n" +
            "4nHhWRh4voeVV7Y1p6zDRB+YoK+oLEP8W7rLu29A9Xws9tVjCrRKRv5w3wzGnfaQ\n" +
            "/0Humsx7r5xeuoYwrxk736yBGBex6BTdDILBST0lZX7C4g37seNLrh+s9pDct8kx\n" +
            "meGiNcFXqAw3fV3NZxQGEz/Mn4paL3ZXQPbeR0aRRAECgYEA2EBN3llJomx5+Ela\n" +
            "QmZSeb2qiYg3qyeSsvwcfIN0j5YjMCjqFmQXrRYneqc9NLYM4h3l2+D189ZPQujR\n" +
            "i1cTY/kGVwyPD/bgOLnr/oubfpIUE662jdBd8bJj21wOy8baMsAmR2UBJGYsDh67\n" +
            "EqoU8BGCuNz6GUXaksRljoIacOcCgYEAzBek4WLRk4/qCFiYw2XaBev2UlkAO2c5\n" +
            "YCYQLTngwjUS1+fJXQ9t/kAoQJluRwweV04k/f4PfBC9PJ3h9NP5km1uw1bLKMO0\n" +
            "0noJfBQXPC7Df4+cGLg8+jRTlE847r+S6sJkEVpjuONIhtEsuhPHK0FrOGCL0YH4\n" +
            "l6MoVxkSFMUCgYAsmg61dnr+ehsp/48TNOF75Ieg+CxrK61RJziE4eQPnWrCix3E\n" +
            "4n4ToAcigA3aqlW76Wi4UgzIbwJIDZbyg1Ing3wwRhHXvBaA/K/U/1xh3aUwbg+O\n" +
            "7lQB/sYjvzf6BZiJcSI0BXwX0s7xVptE/Tl2TlZE5KbcwZCURtefbewgLwKBgFjU\n" +
            "AaNHS0gaXxX62aJR9i6VoMP+kKdKKiK67leA1V4xk139OBsU2B7M9bgID4NEtv/w\n" +
            "txEFPuAUuQhk/y98AyfEEW1bnVjEtTLWgsJKTEKZZ+VhL+NibMfJdocaZAElyF/8\n" +
            "82jKGpUh9zMWX40thoZBFtWWz8QD+ZqmHKyr8L6xAoGActu8V8Hp8mBSRJOOYbnO\n" +
            "UA6ZXQ5WOd9Kozpy5utSe/jpWIoVgx5CMNXSVxaGwApPzaTZtJTGBplmbufVEjpZ\n" +
            "nbFtXYwCtowuUHWWc2Y1ylHFESommlmuTG4wk3j9cA9y4ipAMtCZ/O7ZClLlZECT\n" +
            "SkLunDxh1L9grEAZepXxuig=\n" +
            "-----END PRIVATE KEY-----\n";
        */

    // 微信商户私钥
    public static final String WECHAT_PRIVATE_KEY = "-----BEGIN PRIVATE KEY-----\n" +
            "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCxgCmG8AB18pK0\n" +
            "WLLtJ/B5/Snj8clBNiIyCe9lUxP2UnosptCjkaWlS+nu1w9zQ3EfRtHwd8xoNsiS\n" +
            "FycIXA/QfeikKOuE1DIZCbSjj8qvJ4ufjHpJKL1d1hZ/Im4XK3lgtGbvsWMp9aE6\n" +
            "LRSRJBmMU2SZTLsCduqYD36C0Z0w4x4PDbwjuKoR88W0HDZN4vHuhvyFjMbgO5V2\n" +
            "eRT9aFHjwqaniy/KkpjYPNCjlEMc599FlfgaQ73/kry8AKtwFnniQLJSnPlPvw8U\n" +
            "jKaabnHGSahkyINL8IiMqMTwmhyKfDySwWGTJavRg0SCmsiLZj9eKCq3Ra5lkUr2\n" +
            "ovzmVsTTAgMBAAECggEAVUbbrKaVshTugpKys9miYRlODONW62uUljHLwARf7NHH\n" +
            "PLiQOGV7DaUhKMxN8fSO3pXpuvvzSoY3amiRKiUAvAwhvuyh6lkAEKNnE8W7fNck\n" +
            "72xQO+HEyNZYTJBAEAWk9N73LWUt3TTTVt3dqbWMSKywAi6pEhALuS6Ie1U1jgxi\n" +
            "u6edpWaaA6MbLHPXWrmA1+mEeC6egtoJa7xF+xz0DiAqMCvX1XoriqJEgWFqd/PQ\n" +
            "F9DlUgcjB9v2vAWYI0LAJccj+J8rzPUW1W5SYhPeBozUQgv+VR9ZDuAguqj9Isn5\n" +
            "DcRPZZ7fpwSsoVRk5Uk7ivqZcFAVzq3SU8LKmsmdoQKBgQDaXRkfwxHOek/FIVoH\n" +
            "XSMRUNLIM/SkLbAhEJqbLyMjEY1MKuNae1ieILXrh8DWVz6klpitWPfHw67YpeEO\n" +
            "cUNCQiuLl1tw9NJQng49lpRdWeJzw6tlfWQMdgkPBBARZ+kTrMJHq6cUC0if+Xgp\n" +
            "HBLaG4QsbYcBLX1ULzDWrnwlOQKBgQDQGA6FR0QbuXzB49Qe+8zXUcLebfYSIa+A\n" +
            "55ZLbw2oXWLdsh9FjL4X4gkGJ4CGy4/DinFGHPUWAA6jBoa9j0QbeQ/BLqcD7EbA\n" +
            "XHdrXqLW8+aW1wBUvozjyMFwh/MkKbAv8Q8sjnIs25whpjfbqz9KO4RcpPUu5VgS\n" +
            "7jxrWRLmawKBgBfCh4hQNnDMGD/v6BbjCHzK2ZSVKqpumjqOzvPRxjX7o+9Ev2ZK\n" +
            "A5N5JbJSHCZ2aceI52X9R0DCRxUlv35Nzq63+nr+5iE9UmEZQZ1r9ArQS/aitNSf\n" +
            "NzKv6T5sB7+NGexdIOqhf9WLgMR/ZZa7ikWXNuOKq2TyaS+uztadN77pAoGBALcD\n" +
            "UVH6GXZgrc5ANwCA5+i+6amCABZ2Ncoi41W4d8SJTTg5PbOHUm/ixZj6CNmEEg4h\n" +
            "pfnJ4erVZgoO5VW1uGqJEEgQZabXmGn5aLWvZ3uwyi4DLTFa3MJAf5AeoMI/P8sK\n" +
            "MRQ4u0WkZy5Y52t0spbwvTpVgaUa41jS2aR3lF29AoGAXwEhlbt+zwblPCLiN+Vx\n" +
            "R+ssnB7Gy0xUBEZ9AYRBGO5Lj+gV2syiZUX/Rbhbev1nHmmFCrUWCUA+VSpxVrj8\n" +
            "Z/EfkeQKVPR1MCHDf2Auw0UQjTtyUC53+ythkNUgY52gk2IqDIlQ4aAQ7tSKR/lI\n" +
            "70ekEXnNGXccXFDx1H9c5Ho=\n" +
            "-----END PRIVATE KEY-----\n";

    /**
     * ------------------------------------------ 支付宝固定参数 ------------------------------------------
     */

    // 支付宝网关
    public static final String ALIPAY_GATEWAY = "https://openapi.alipay.com/gateway.do";

    // 签名
    public static final String ALIPAY_SIGN_RSA = "RSA2";
    //数据格式
    public static final String ALIPAY_DATA_JSON = "json";
}
